/**
 \* Created with IntelliJ IDEA.
 \* @author: 彭诗杰
 \* @date: 2019/7/8
 \* @time: 21:31
 \* Description:
 \*/
import * as API from './'

export default {

  getSolidSystems: id => API.GET('/solid-service/solid/' + id + '/systems'),

  getSolidFactors: params => API.GET('/solid-service/solid/' + params.solidId
    + '/system/' + params.systemCode + '/factors'),

  getSolidLatestValue: params => API.GET('/solid-service/solid/' + params.solidId
    + '/system/' + params.systemCode + '/factor/' + params.factorCode + '/latest'),

  getSolidHistoryValues: params => API.GET('/solid-service/solid/' + params.solidId
    + '/system/' + params.systemCode + '/factor/' + params.factorCode + '/histories', params),

  getSolidHistoriesNoPaging: params => API.GET('/solid-service/solid/' + params.solidId
    + '/system/' + params.systemCode + '/factor/' + params.factorCode + '/histories/all', params)
}
